﻿using System;
using System.Runtime.Serialization;

namespace WPHttpServer
{
    public class HttpException : Exception
    {
        public HttpStatusCode ErrorCode { get; set; }

        public HttpException(HttpStatusCode errorCode)
            : this(errorCode, null)
        {
        }

        public HttpException(HttpStatusCode errorCode, string message)
            : this(errorCode, message, null)
        {
            
        }

        public HttpException(HttpStatusCode errorCode, string message, Exception inner)
            : base(message, inner)
        {
            ErrorCode = errorCode;
        }
    }
}
